<div class="p10 w600">
<!--startprint-->
  <table class="formtable">
    <tr>
      <th class="w80">新IMEI号</th>
      <td>{$info['new_imei']}</td>
      <th class="w80">IMEI号:</th>
      <td>{$info['imei']}</td>
    </tr>
    <tr>
      <th class="w60">购买日期:</th>
      <td>{date('Y-m-d',$info['shop_time'])}</td>
      <th class="w80">维修日期:</th>
      <td>{date('Y-m-d',$info['service_time'])}</td>
    </tr>
    <tr>
      <th class="w80">厂商:</th>
      <td>{$info['manufacturer_name']}</td>
      <th class="w80">机型:</th>
      <td>{$info['producttype_name']}</td>
    </tr>
    <tr>
      <th>是否过保:</th>
      <td>{if $info['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
      <th>是否紧急:</th>
      <td>{if $overtime['is_urgent']}<span class="badge bg-red">加急</span>{else}<span class="badge">普通</span>{/if}</td>
    </tr>
    <tr>
      <th>原始故障描述:</th>
      <td colspan="3">{$info['fault_why']}</td>
    </tr>
    <tr>
      <th>实际故障描述:</th>
      <td colspan="3">{$info['failure_cause']}</td>
    </tr>
    <tr>
      <th>维修工程师:</th>
      <td colspan="3">{$info['service_admin_name']}</td>
    </tr>
  </table>
  <div class="table-head fn-clear">维修物料</div>
  <table class="table table-border">
  <thead>
      <tr>
          <td class="fn-tac w60">#</td>
          <td>产品名称</td>
          <td class="w100 fn-tac">物料代码</td>
          <td>物料名称</td>
          <td>规格型号</td>
      </tr>
  </thead>
  <tbody>
  {loop $list $vo}
  <tr>
      <td class="fn-tac">{$vo['id']}</td>
      <td>{$vo['product']}</td>
      <td class="fn-tac">{$vo['code']}</td>
      <td>{$vo['name']}</td>
      <td>{$vo['parameter']}</td>
  </tr>
  {/loop}
  </tbody>
  </table>
  <div class="table-head fn-clear">质检结论</div>
  <table class="formtable">
    <tr>
      <th class="w80">质检工程师</th>
      <td class="w150">{$info['testing_admin_name']}</td>
      <th class="w80">质检时间::</th>
      <td class="w150">{date('Y-m-d',$info['testing_time'])}</td>
    </tr>
    <tr>
      <th>质检结论:</th>
      <td colspan="3">{$info['testing_text']}</td>
    </tr>
  </table>
  <div class="table-head fn-clear">出库信息</div>
  <table class="formtable">
    <tr>
      <th class="w80">出库工程师:</th>
      <td class="w150">{$info['outwarehouse_admin_name']}</td>
      <th class="w80">出库时间:</th>
      <td class="w150">{date('Y-m-d',$info['out_time'])}</td>
    </tr>
    <tr>
      <th class="w80">快递号:</th>
      <td class="w150">{$info['outwarehouse_ems_sn']}</td>
      <th class="w80">收货地址:</th>
      <td class="w150">{$info['outwarehouse_address']}</td>
    </tr>
  </table>
 <!--endprint-->
<div class="btn fn-tac">
  <a href="javascript:;" onClick="doPrint()"  class="button">
      <i class="iconfont icon-dayinji"></i> 打印
  </a>
</div>
</div>
<script type="text/javascript">
function doPrint() { 
    bdhtml=window.document.body.innerHTML; 
    sprnstr="<!--startprint-->"; 
    eprnstr="<!--endprint-->"; 
    prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
    prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
    window.document.body.innerHTML=prnhtml; 
    window.print(); 
}
</script>

